﻿Ext.define('Examples.crud.user.view.Form', {
    extend: 'Happy.form.Panel',
    alias: 'widget.user-form',

    items: [{
        fieldLabel: 'Name',
        name: 'Name',
        allowBlank: false
    }, {
        fieldLabel: 'Email',
        name: 'Email',
        allowBlank: false
    }],

    initComponent: function () {
        var me = this;

        me.buttons = Happy.createActions([
            'save',
            'close'
        ]);

        me.callParent(arguments);
    }
});